package com.example.hospitalapp;

import java.io.Serializable;

public class MedicalRecord implements Serializable {
    private int recordId;
    private int patientId;
    private int doctorId;
    private String visitDate;
    private String diagnosis;
    private String treatment;
    private String type;
    private String allergicHistory;
    private String illnessHistory;
    private int isComplete;
    private String onsetDate;

    public MedicalRecord(int recordId, int patientId, int doctorId, String visitDate,
                         String treatment, String type, String allergicHistory, String illnessHistory,int isComplete,String onsetDate,String diagnosis) {
        this.patientId = patientId;
        this.recordId = recordId;
        this.doctorId = doctorId;
        this.visitDate = visitDate;
        this.treatment = treatment;
        this.type = type;
        this.allergicHistory = allergicHistory;
        this.illnessHistory = illnessHistory;
        this.isComplete = isComplete;
        this.onsetDate = onsetDate;
        this.diagnosis = diagnosis;
    }


    // Getter and Setter methods

    public int getRecordId() {
        return recordId;
    }

    public void setRecordId(int recordId) {
        this.recordId = recordId;
    }

    public int getPatientId() {
        return patientId;
    }

    public void setPatientId(int patientId) {
        this.patientId = patientId;
    }

    public int getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(int doctorId) {
        this.doctorId = doctorId;
    }

    public String getVisitDate() {
        return visitDate;
    }

    public void setVisitDate(String visitDate) {
        this.visitDate = visitDate;
    }

    public String getDiagnosis() {
        return diagnosis;
    }

    public void setDiagnosis(String diagnosis) {
        this.diagnosis = diagnosis;
    }

    public String getTreatment() {
        return treatment;
    }

    public void setTreatment(String treatment) {
        this.treatment = treatment;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAllergicHistory() {
        return allergicHistory;
    }

    public void setAllergicHistory(String allergicHistory) {
        this.allergicHistory = allergicHistory;
    }

    public String getIllnessHistory() {
        return illnessHistory;
    }

    public void setIllnessHistory(String illnessHistory) {
        this.illnessHistory = illnessHistory;
    }

    public int getIsComplete() {
        return isComplete;
    }

    public void setIsComplete(int isComplete) {
        this.isComplete = isComplete;
    }

    public String getOnsetDate() {
        return onsetDate;
    }

    public void setOnsetDate(String onsetDate) {
        this.onsetDate = onsetDate;
    }
}
